package org.jeecg.modules.company.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.company.entity.ProductSpec;
import org.jeecg.modules.company.facade.IProductSpecFacade;
import org.jeecg.modules.company.service.IProductSpecService;
import org.jeecg.modules.company.vo.ProductSpecVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 产品配置
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class ProductSpecFacadeImpl extends IFacadeImpl<ProductSpecVo, ProductSpec, IProductSpecService>  implements IProductSpecFacade<ProductSpecVo, ProductSpec> {
        @Autowired
        private IProductSpecService productSpecService;


         @Override
         public ProductSpec po2Vo(ProductSpecVo vo) {
                ProductSpec po = new ProductSpec();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public ProductSpecVo vo2Po(ProductSpec po) {
                ProductSpecVo vo = new ProductSpecVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
